import request from '@/utils/request'

// 获取路由
export function allGoodsList (query)  {
  return request({
    url: 'system/goods/list',
    method: 'get',
    params: query
  })
}
export function addGoods (data)  {
  return request({
    url: 'system/goods/insertGoods',
    method: 'post',
    data: data
  })
}
// 删除用户
export function delGoods(id) {
  return request({
    url: 'system/goods/' + id,
    method: 'delete'
  })
}

// 修改用户
export function updateGoods(data) {
  return request({
    url: '/system/goods',
    method: 'put',
    data: data
  })
}
